# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer: Laurent Bercot <ska-devel@skarnet.org>
pkgname=bcnm
pkgver=0.0.1.5
pkgrel=1
pkgdesc="Better Client Network Manager"
url="https://skarnet.org/software/bcnm/"
arch="all"
license="ISC"
options="!check"
makedepends="skalibs-dev>=2.12 linux-headers"
subpackages="$pkgname-dev $pkgname-doc"
source="https://skarnet.org/software/bcnm/bcnm-$pkgver.tar.gz"

build() {
	./configure \
		--enable-shared \
		--enable-static \
		--disable-allstatic \
		--prefix=/usr \
		--libdir=/usr/lib \
		--libexecdir="/usr/lib/$pkgname" \
		--with-dynlib=/lib
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

doc() {
	default_doc
	mkdir -p "$subpkgdir/usr/share/doc"
	cp -a "$builddir/doc" "$subpkgdir/usr/share/doc/$pkgname"
}

sha512sums="
83cf31c62f1092008aa16ce8896f038cfdeb4009c3e161647ea76b264fb044bf37e029ad6362490fb15b36338d9cbe16373dac6b1320fd118dc563200518117e  bcnm-0.0.1.5.tar.gz
"
